package com.example.dictionary.config;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.FilterType;
import org.springframework.scheduling.annotation.EnableAsync;

/**
 * RocksDB 测试专用的应用主类
 * 包含 @MapperScan，允许使用真实的 Mapper
 */
@SpringBootApplication
@EnableAsync
@org.mybatis.spring.annotation.MapperScan("com.example.dictionary.repository")
@ComponentScan(
    basePackages = {
        "com.example.dictionary",
        "com.example.memento.download"
    },
    excludeFilters = @org.springframework.context.annotation.ComponentScan.Filter(
        type = org.springframework.context.annotation.FilterType.REGEX,
        pattern = "com\\.example\\.dictionary\\.test\\..*"
    )
)
public class RocksDBTestApplication {
    // 测试专用配置类
}

